<div class=page_head>
<h2>Listing stories</h2>
</div>

<table class=data>
  <tr>
    <th>in_home</th>
    <th>Name</th>
    <th>Buzz</th>
    <th>Ceo</th>
    <th>Url</th>
    <th>Body size</th>
    <th colspan=3>Action</th>
  </tr>
  
<% for story in @stories %>
  <tr>
    <td><%=story.in_home%></td>
    <td><%=story.name %></td>
    <td><%=story.buzz %></td>
    <td><%=story.owner%></td>
    <td><%=story.url %></td>
    <td><%=story.body.size%></td>
    <td><%= link_to 'Show', story_path(story) %></td>
    <td><%= link_to 'Edit', edit_story_path(story) %></td>
    <td><%= link_to 'Destroy', story_path(story), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New story', new_story_path %>
